import request from '@/utils/request'

// 腾讯广告授权账号广告主广告列表表列表
export function apiTencentAdvertisingUserAdListLists(params: any) {
    return request.get({ url: '/ads.tencent_advertising_user_ad_list/lists', params })
}

// 添加腾讯广告授权账号广告主广告列表表
export function apiTencentAdvertisingUserAdListAdd(params: any) {
    return request.post({ url: '/ads.tencent_advertising_user_ad_list/add', params })
}

// 编辑腾讯广告授权账号广告主广告列表表
export function apiTencentAdvertisingUserAdListEdit(params: any) {
    return request.post({ url: '/ads.tencent_advertising_user_ad_list/edit', params })
}

// 删除腾讯广告授权账号广告主广告列表表
export function apiTencentAdvertisingUserAdListDelete(params: any) {
    return request.post({ url: '/ads.tencent_advertising_user_ad_list/delete', params })
}

// 腾讯广告授权账号广告主广告列表表详情
export function apiTencentAdvertisingUserAdListDetail(params: any) {
    return request.get({ url: '/ads.tencent_advertising_user_ad_list/detail', params })
}

// 添加腾讯广告授权账号广告主广告投放
export function apiTencentAdvertisingUserAdListPlacement(params: any) {
    return request.post({ url: '/ads.tencent_advertising_user_ad_list/placement', params }, { isReturnDefaultResponse: true })
}

// 重新投放
export function apiTencentAdvertisingUserAdListPlacementRefresh(params: any) {
    return request.post({
        url: '/ads.tencent_advertising_user_ad_list/placement_refresh',
        params
    }, { isReturnDefaultResponse: true })
}

// 获取微信号列表
export function getWechatList(params: any) {
    return request.get({ url: '/ads.tencent_advertising_user_ad_list/detail', params })
}

// 24小时投放
export function apiTencentAdvertisingUserAdList24HourPlacement(params: any) {
    return request.get({ url: '/ads.tencent_advertising_user_ad_list/hour_placement_refresh', params }, { isReturnDefaultResponse: true })
}

// 投放记录
export function apiTencentAdvertisingUserAdListLogLists(params: any) {
    return request.get({ url: '/ads.tencent_advertising_user_ad_list_log/lists', params })
}

// 投放记录
export function apiTencentAdvertisingUserAdListBindWechatLists(params: any) {
    return request.get({ url: '/ads.tencent_advertising_user_ad_list_log/bind_wechat_list', params })
}

// 获取黑名单列表
export function apiTencentAdvertisingBlackListLists(params: any) {
    return request.get({ url: '/ads.tencent_advertising_black_list/lists', params })
}

// 添加黑名单
export function apiTencentAdvertisingBlackListAdd(params: any) {
    return request.post({ url: '/ads.tencent_advertising_black_list/add', params })
}

// 删除黑名单
export function apiTencentAdvertisingBlackListDelete(params: any) {
    return request.post({ url: '/ads.tencent_advertising_black_list/delete', params })
}

// 获取客群库列表
export function apiTencentAdvertisingUserAdListCustomerGroups() {
    return request.get({ url: '/audience.audienceLibrary/allLists' })
}

// 创建投放外链
export function apiTencentAdvertisingUserAdListCreateWebUrl(params: { id: string | number, ad_group_id: string | number, ad_group_name: string }) {
    return request.post({ url: '/ads.tencent_advertising_user_ad_list/createWebUrl', params })
}

// 广告主管理-数量统计
export function getCount() {
    return request.post({ url: '/ads.tencent_advertising_user_ad_list/getCount' })
}

// 广告主广告管理-朋友圈精准投放-数量统计
export function getWechatCount(params: any) {
    return request.post({ url: '/ads.tencent_advertising_user_ad_list/getAd/getCount', params })
}

// 广告主广告管理-朋友圈精准投放-客群库
export function getAudienceLibrary(params: any) {
    return request.get({ url: '/ads.tencent_advertising_user_ad_list/get_audience_library', params })
}

// 重新投放
export function audience_library_retry(params: any) {
    return request.get({ url: '/ads.tencent_advertising_user_ad_list/audience_library_retry', params })
}

//客服选择列表
export function selectList() {
    return request.get({ url: '/kefu.kefu/selectList' })
}

//客服选择列表
export function getAiTitle(params: any) {
    return request.post({ url: '/ads.tencent_advertising_landing_creatives/getAiTitle', params })
}

//获取历史文案
export function get_history_copywriting(params?: any) {
    return request.get({ url: '/ads.tencent_advertising_landing_creatives/get_history_copywriting', params })
}

